const getFileName = (name) => {

    let lastIndex = name.lastIndexOf('.');
    let filename = name.substring(0, lastIndex);
    return filename;
}

module.exports = getFileName;